public class VicePresident extends Approver{
    public VicePresident(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest request) {
        if(request.getAmount() >= 50000 && request.getAmount() < 100000){
            System.out.println(name+"副董事长审批通过");
        }
        else if(successor != null){
            successor.processRequest(request);
        }
        else{
            System.out.println("审批未成功");
        }
    }
}
